﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace msBsc.WebUi.mMall.Buyer
{
    public partial class mfTouristInfo : msBsc.Cls.mbPCustom
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}

        private void getUserInfo()
        {
            string userId = msBsc.SvRef.UserInfo.Operator;
            if (string.IsNullOrEmpty(userId))
            {
                return;
            }
            using (msBsc.AppLogic.DataAlc.CBizCustomerBaseInfo userInfo = new AppLogic.DataAlc.CBizCustomerBaseInfo())
            {
                DataSet ds = userInfo.GetVisitorByIds(userId);
                if (ds != null)
                {
                    string ret = msBsc.AppLogic.Cfg.HttpTools.GetJsonByTable(ds.Tables[0], "", "", 1, 50, "");
                    this.ExecJScript(@"showUserInfo(" + ret + ")");
                }
            }
        }

        public override void DoAction()
        {
            if (this.strAction=="init")
            {
                getUserInfo();
            }
        }
	}
}